﻿@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, WebVella.Erp.Web
@addTagHelper *, WebVella.Controls
@using WebVella.Erp.Web.Models;
@{
	var sidebarMenu = (List<MenuItem>)ViewBag.SidebarMenu;
}
<div class="sidebar-body">
	@foreach (var menuItem in sidebarMenu)
	{
        <partial name="NavMenu" for="@menuItem"/>
		@*@Html.Partial("NavMenu", menuItem)*@
	}
</div>
<div class="sidebar-footer">
	<button type="button" class="btn btn-sm btn-dark sidebar-switch">
		<i class="fas fa-fw fa-angle-double-right icon"></i>
	</button>
</div>